package br.com.tgbsistdistr.persistence;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.com.tgbsistdistr.entitybean.FuncionarioEntity;

public class DAO {

	@PersistenceContext(unitName = "defaultDS")
	private EntityManager em;

	public DAO() {
	}

	public void gravar(FuncionarioEntity entityBean) {
		try {
			em.persist(entityBean);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
